<!DOCTYPE html>
<html lang="en">

<head>

    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="">
    <meta name="author" content="">

    <title>部门列表</title>

    <!-- Bootstrap Core CSS -->
    <link href="__PUBLIC__/home/css/bootstrap.min.css" rel="stylesheet">
    <link href="__PUBLIC__/home/css/common.css" rel="stylesheet">

    <!-- Custom Fonts -->
    <!--<link href="_PUBLIC__/font/css/font-awesome.min.css" rel="stylesheet" type="text/css">-->

    <!-- HTML5 Shim and Respond.js IE8 support of HTML5 elements and media queries -->
    <!-- WARNING: Respond.js doesn't work if you view the page via file:// -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
    <![endif]-->

    <link href="__PUBLIC__/home/css/common.css" rel="stylesheet">
</head>

<body>
<div class="container-fluid">
    <!-- Page Heading -->
    <div class="row">
        <div class="col-md-12">
            <ol class="breadcrumb">
                <li class="active">
                    <i class="fa fa-fw fa-edit"></i>
                    部门列表
                </li>
            </ol>
        </div>
    </div>
    <div class="row">
    <div class="col-xs-12">
    <button type="button" class="btn btn-sm btn-primary btn-close" id="xx-btn-add">添加部门</button>
    </div>
    </div>
    <div class="row">
        <div class="col-lg-12">
            <h2></h2>
            <div class="">
                <table class="table table-bordered table-hover table-striped" id="dataTables-date">
                    <thead>
                    <tr>
                        <th>ID</th>
                        <th>部门名称</th>
                        <th>操作</th>
                    </tr>
                    </thead>
                    <tbody>
                    <volist name="list" key="k" id ="ord">
                        <tr>
                            <td>{$k}</td>
                            <td>{$ord.department_name}</td>
                            <td>
                                <a href="{:U('Department/edit',array('department_id'=>$ord['department_id']))}">编辑</a>  |
                                <a href="{:U('Department/excel',array('department_id'=>$ord['department_id']))}">导出</a>
                                <!--<a href="{:U('Department/delete',array('department_id'=>$ord['department_id']))}">删除</a>-->
                            </td>
                        </tr>
                    </volist>
                    </tbody>
                </table>
            </div>
        </div>
    </div>
    <!-- /.row -->
    <div class="pages">
        {$page}
    </div>
</div>



<script src="__PUBLIC__/home/js/jquery.min.js"></script>

<!-- Bootstrap Core JavaScript -->
<script src="__PUBLIC__/home/js/bootstrap.min.js"></script>

<!-- iframe自适应高度 -->

</body>
<script type="text/javascript">

    $(".btn-close").click(function () {
        window.parent.$('.bg-model').hide();
    })

    $("#xx-btn-add").click(function () {
        location.href = "{:U('Department/add')}";
    })


</script>

</html>
